package com.example.mapper;

import com.example.domain.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author tong
* @description 针对表【user】的数据库操作Mapper
* @createDate 2023-05-08 20:29:29
* @Entity com.example.domain.User
*/
public interface UserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    @Select("select * from user")
    List<User> selectAll();
}
